package com.heima.task.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class EatJob {
    //@Scheduled(cron = "*/3 * * * * ?")
    @XxlJob("helloJob")
    public ReturnT eat(String params) {
        System.out.println(params + "我开始干饭了.....");
        return ReturnT.SUCCESS;
    }
}
